var logger = require('./logger')

function send(socket,key,data){
    logger.log('emit',key);
    if(socket){
        socket.emit(key, data);
    }
}

module.exports = {
    send
  }